package com.xyz.aclservice.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.xyz.aclservice.entity.EduUser;
import com.xyz.dao.EduUserMapper;
import com.xyz.aclservice.service.EduUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户表 服务实现类
 * </p>
 *
 * @author testjava
 * @since 2020-01-12
 */
@Service
public class EduUserServiceImpl extends ServiceImpl<EduUserMapper, EduUser> implements EduUserService {

    @Override
    public EduUser selectByUsername(String username) {
        return baseMapper.selectOne(new QueryWrapper<EduUser>().eq("username", username));
    }
}
